package edu.pku.taas.hyperic.types2;


public class Measurement {
 
	public Measurement(){}

	public Measurement(int id, int instanceId, int templateId, int resourceId,
			boolean isEnabled, String dsn,String name) {
		super();
		this.id = id;
		this.instanceId = instanceId;
		this.templateId = templateId;
		this.resourceId = resourceId;
		this.enabled = isEnabled;
		this.dsn = dsn;
		this.name=name;
	}

	

	private int id;
	private int instanceId;
	private int templateId;
	private int resourceId;
	private boolean enabled;
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getInstanceId() {
		return instanceId;
	}

	public void setInstanceId(int instanceId) {
		this.instanceId = instanceId;
	}

	public int getTemplateId() {
		return templateId;
	}

	public void setTemplateId(int templateId) {
		this.templateId = templateId;
	}

	public int getResourceId() {
		return resourceId;
	}

	public void setResourceId(int resourceId) {
		this.resourceId = resourceId;
	}

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean isEnabled) {
		this.enabled = isEnabled;
	}

	public String getDsn() {
		return dsn;
	}

	public void setDsn(String dsn) {
		this.dsn = dsn;
	}

	private String dsn;
	
	public String toString(){
		return "ID="+id+";INSTANCE_ID=" +instanceId+ ";name="+name+";TEMPLATE_ID="+templateId + ";ENABLED="+enabled + ";RESOURCE_ID=" +resourceId+ ";DSN="+dsn;
	}
}
